package com.eve.pojo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 老大哥在看着你
 *
 * @author ANG.YU
 * @date 2019-11-22 20:43
 */
@Data
/*表名映射*/
@TableName("tb_user")
public class User {
    /*映射到数据库表的主键字段*/
    @TableId("user_id")
    private Long id;
    /*非主键映射*/
    /*@TableField("tname")*/
    private String name;
    private String email;
    private Long managerId;
    private Date createTime;
    private Integer age;
    //transient不参与序列化，不参与数据库
    /*private transient String remark;*/

    /*mp不对静态变量持久化*/
    /*private static String remark;*/

    /*注解方式排除*/
    @TableField(exist = false)
    private  String remark;


}
